use error::{AppErr, ErrWrap};
use simple_logger::SimpleLogger;


mod error;
mod store;
mod web;
mod config;
mod utils;

#[actix_web::main]
async fn main() -> Result<(), AppErr> {
    SimpleLogger::new().init().wrap()?;

    config::init().await?;
    store::init().await?;
    web::run().await?;

    Ok(())
}